@extends(config('admin.systems.layout_form_blade'))

@section('content')
    <div class="nav-tabs-custom">
        <ul class="nav nav-tabs">
            <li class=""><a href="javascript:void(0)" onclick="window.history.go(-1);">返回列表</a></li>
            <li class="active"><a href="#basic" data-toggle="tab" aria-expanded="true">基础</a></li>
        </ul>
        <div class="tab-content">
            <div class="tab-pane active" id="basic">
                <input type="hidden" name="info[id]" value="{{ get_value($detail, 'id', 0) }}">
                <div class="form-group">
                    <label for="input-title" class="col-sm-1 control-label">标题</label>

                    <div class="col-sm-9">
                        {!! get_input_html('info[title]', get_value($detail, 'title', ''), ['id'=>'input-title']) !!}
                    </div>
                </div>

                <div class="form-group">
                    <label for="input-description" class="col-sm-1 control-label">简介</label>

                    <div class="col-sm-9">
                        {!! get_textarea_html('info[description]', get_value($detail, 'description', ''), ['id'=>'input-description']) !!}
                    </div>
                </div>

                <div class="form-group">
                    <label for="input-cover" class="col-sm-1 control-label">封面图片</label>

                    <div class="col-sm-9">
                        {!! get_upload_picture_html('info[cover]', ['id'=>0, 'url'=>get_value($detail, 'cover', ''), 'desc'=>''], 1) !!}
                    </div>
                </div>

                <div class="form-group">
                    <label for="input-pic_text" class="col-sm-1 control-label">图集</label>
                    <div class="col-sm-9">
                        {!! get_upload_picture_html('info[pic_text]', json_decode(get_value($detail, 'pic_text', json_encode([])), true), 0) !!}
                    </div>
                </div>

                <div class="form-group">
                    <label for="input-content" class="col-sm-1 control-label">内容</label>
                    <div class="col-sm-9">
                        {!! get_editor_html('info[content]', get_value($detail, 'content')) !!}
                    </div>
                </div>

                <div class="form-group">
                    <label for="input-seo_title" class="col-sm-1 control-label">SEO标题</label>

                    <div class="col-sm-9">
                        {!! get_input_html('info[seo_title]', get_value($detail, 'seo_title', ''), ['id'=>'input-seo_title']) !!}
                    </div>
                </div>

                <div class="form-group">
                    <label for="input-seo_keywords" class="col-sm-1 control-label">SEO关键字</label>

                    <div class="col-sm-9">
                        {!! get_input_html('info[seo_keywords]', get_value($detail, 'seo_keywords', ''), ['id'=>'input-seo_keywords']) !!}
                    </div>
                </div>

                <div class="form-group">
                    <label for="input-seo_description" class="col-sm-1 control-label">SEO描述</label>

                    <div class="col-sm-9">
                        {!! get_textarea_html('info[seo_description]', get_value($detail, 'seo_description', ''), ['id'=>'input-seo_description']) !!}
                    </div>
                </div>

                <div class="form-group">
                    <label for="input-template_detail" class="col-sm-1 control-label">前台栏目详情模板</label>

                    <div class="col-sm-9">
                        {!! get_select_html(config('admin.systems.document_template_detail_list'), 'info[template_detail]', get_value($detail, 'template_detail', ''), ['id'=>'input-template_detail']) !!}
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

